﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsFormsApplication1.DataMGMT
{
    public class StringValue : IValue
    {
        private eValueDef m_def;
        
        private string m_value;
        
        public eValueDef valuedef
        {
            get { return m_def; }
        }

        public void Value(eValueDef p_def)
        {
            m_def = p_def;
        }

        public void UpdateValue(string p_newValue)
        {
            m_value = p_newValue;
        }

        public string GetStringValue()
        {
           return  m_value;
        }

        public double GetDoubleValue()
        {
            return Double.MinValue;
        }

        public int GetType()
        {
            return (int)m_def;
        }

    }
}
